package cn.wrl.cart.service;


import cn.wrl.pojo.IMOOCJSONResult;
import cn.wrl.pojo.ShopcartBO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("shopcart-api")
public interface ShopCartService {


    @PostMapping("add")
    IMOOCJSONResult add(@RequestParam("userId") String userId,
                        @RequestBody ShopcartBO shopcartBO);

    @PostMapping("del")
    IMOOCJSONResult del(@RequestParam("userId") String userId,
                        @RequestParam("itemSpecId") String itemSpecId);

    @PostMapping("clearCart")
    IMOOCJSONResult clear(@RequestParam("userId") String userId);
}
